package com.hw.job_3;

public class Job_3_Test {

    public static void main(String[] args) {

        // 手机卡
        MobilePhoneCard mpc = new MobilePhoneCard(PhoneCardType.BIG, "18812345678",
                "张飞", "123345", 1000.0, 100, 3000);
        mpc.show();

        // 套餐类
        Package creditP = new CreditPackage(200, 100, 50);
        creditP.showInfo();

        Package dataP = new DataPackage(300, 2000);
        dataP.showInfo();

        // 接口实现类
        CreditServerInterface creditI = new CreditPackage(200, 100, 50);
        creditI.creditServer(200, mpc);

        DataServerInterface dataI = new DataPackage(300, 2000);
        dataI.dataServer(200, mpc);
    }
}
